package com.sg.dto.integration.framework;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BeginMembInfoDto
 * @使用场景
 */
@Data
public class BeginMembInfoDto extends BaseDto implements Serializable {

    /**
     * 身份人员资料ID
     */
    @ApiModelProperty("身份人员资料ID")
    private String originalStafInfoId;

    /**
     * 身份人员编号
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BeginMembInfoDto that = (BeginMembInfoDto) o;
        return (
                originalStafInfoId == that.originalStafInfoId &&
                        roleMemberCode == that.roleMemberCode
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), originalStafInfoId, roleMemberCode);
    }

}
